home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Linux LiveCD
/
GeeXboX 1.0 EN
/
geexbox-1.0-en.i386.iso
/
GEEXBOX
/
etc
/
init.d
/
56_nfs
< prev
next >
Wrap
Text File
|
2006-06-21
|
439b
|
23 lines
#!/bin/sh
#
# mount nfs shares
#
# runlevels: geexbox, debug
IFS='
'
if test -f /etc/nfs; then
echo "### Mounting NFS shares ###"
(
for MOUNTS in `grep -v "^#" /etc/nfs | grep -v "^$"`; do
SRV=`echo $MOUNTS | sed 's/[ ]*\([^ ]*\)[ ]*.*/\1/'`
DIR=`echo $MOUNTS | sed 's/[ ]*[^ ]*[ ]*\([^ ]*\)/\1/'`
mkdir -p /mnt/nfs/$DIR
mount -t nfs -o ro,nolock,nfsvers=2 $SRV /mnt/nfs/$DIR >/dev/null 2>&1
done
)&
fi
exit 0